<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/23
 * Time: 16:30
 */
$osctc_octid      = $route->bodyParams['osctc_octid'];      //课程ID
$osctc_osid       = $route->bodyParams['osctc_osid'];        //学生ID
$osctc_status     = $route->bodyParams['osctc_status'];    //考勤状态
$osctc_type       = $route->bodyParams['osctc_type'];    //
$osctc_oesid      = $route->bodyParams['osctc_oesid'];    //
$osctc_expend     = $regexpObj->bodyV($response,$route,'osctc_expend','NORMAL');
$osctc_teacher_id = $regexpObj->bodyV($response,$route,'osctc_teacher_id','NORMAL');
$osctc_os_type    = $regexpObj->bodyV($response,$route,'osctc_os_type','NORMAL');
$osctc_create_time= $regexpObj->bodyV($response,$route,'osctc_create_time','NORMAL');

//写入数组
$insertArr = [
    'osctc_octid'       => $osctc_octid,
    'osctc_osid'        => $osctc_osid,
    'osctc_status'      => $osctc_status,
    'osctc_type'        => $osctc_type,
    'osctc_expend'      => $osctc_expend,
    'osctc_oesid'       => $osctc_oesid,
    'osctc_teacher_id'  => $osctc_teacher_id,
    'osctc_os_type'     => $osctc_os_type,
    'osctc_create_time' => $osctc_create_time?$osctc_create_time:time(),
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_student_class_time_check",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );